package com.dzl.exchange.dao;

import com.dzl.exchange.pojo.WelfareExchangeGoods;
import com.dzl.exchange.pojo.vo.ExchangeSkuGoodsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.dzl.base.mapper.BaseMapper;

import java.util.List;

/**
 * 兑换券组关联商品表(WelfareExchangeGroupGoods)表数据库访问层
 * @author caobucao
 * @date 2021-07-09 17:30:31
 */
@Repository
public interface WelfareExchangeGoodsMapper extends BaseMapper<WelfareExchangeGoods> {


    /**
     * 根据兑换券组id查询商品规格列表
     * @param exchangeGroupId 兑换券组id
     * @author liuguanjun
     * @date 2021/12/02 17:02
     */
    List<ExchangeSkuGoodsVo> selectExchangeSkuGoodsVoByExchangeGroupId(@Param("exchangeGroupId") Integer exchangeGroupId);

    /**
     * 根据兑换券组商品id查询商品规格列表
     * @param exchangeGoodsIds 兑换券组商品ids
     * @author liuguanjun
     * @date 2021/12/08 09:52
     */
    List<ExchangeSkuGoodsVo> selectExchangeSkuGoodsVoByExchangeGoodsIds(@Param("exchangeGoodsIds") String exchangeGoodsIds);
}
